import request from '../utils/request.js'



//登录请求
export  const login = (data)=> {
    return request ({
        method: 'POST',
        url: '/mp/v1_0/authorizations',
        data
    })
}
//获取用户信息
export  const getUserProfile = ()=> {
    const user =  JSON.parse(window.localStorage.getItem('user'))
    return request ({
        method: 'GET',
        url: '/mp/v1_0/user/profile',
        // headers:{
        //     Authorization: `Bearer ${user.token}`
        // }
    })
}